﻿using System.Collections.Generic;
using System.Linq;

namespace MultiDAQ_Analysis.Calculation.Parameters
{
    public class WorkingSourceParameters : MeasurementParameters
    {
        public override string MeasurementType => "WorkingSourceEfficiency";

        public double GeometryFactor { get; set; } = 0.9;
        public Dictionary<int, double> AlphaEmissionRates { get; set; } = new Dictionary<int, double>();
        public Dictionary<int, double> BetaEmissionRates { get; set; } = new Dictionary<int, double>();

        public override bool Validate()
        {
            return GeometryFactor > 0 && GeometryFactor <= 1.0 &&
                   AlphaEmissionRates.Values.All(v => v > 0) &&
                   BetaEmissionRates.Values.All(v => v > 0);
        }
    }
}